// 删除生成临时的文件
export const deleteWxFile = () => {
    const fs = uni.getFileSystemManager();
    fs.readdir({
      dirPath: uni.env.USER_DATA_PATH,
      success(res) {
        res.files.forEach((el) => {
          fs.unlink({
            filePath: `${uni.env.USER_DATA_PATH}/${el}`,
          });
        });
        fs.close();
      },
    });
  };
